Skip to content

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Sep 16, 2024

This change adds one layer of indirection in the library implementation of Relabel so that the operation can be adjointable. The adjoint is just a switch of the qubit arrays such that Adjoint Relabel(current, updated) is the same as Relabel(updated, current).

This change adds one layer of indirection in the library implementation of `Relabel` so that the operation can be adjointable. The adjoint is just a switch of the qubit arrays such that `Adjoint Relabel(current, updated)` is the same as `Relabel(updated, current)`.
@github-actions
Copy link

Change in memory usage detected by benchmark.

Memory Report for 727fe9e

Test This Branch On Main Difference
compile core + standard lib 18023304 bytes 18009732 bytes 13572 bytes

@swernli swernli added this pull request to the merge queue Sep 16, 2024
Merged via the queue into main with commit 82e2a62 Sep 16, 2024
@swernli swernli deleted the swernli/adjoint-relabel branch September 16, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants